package cn.fboost.mtos.dto.request;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 订单退款/退单请求
 */
@Data
public class OrderRefundRequest {
    @NotBlank(message = "订单号不能为空")
    private String tradeNo;

    @NotNull(message = "退款金额不能为空")
    @DecimalMin(value = "0.01", message = "退款金额不能小于0.01")
    private Double refundAmount;
}
